import common from './common.js';
export default {
	isJiess: true,
	name: 'Edit',
	setup({ midder, ...props }) {
		common.call(this, midder, 'edit', props);
		// 发起请求前的触发，用于矫正请求数据
		midder.addListener(`editHttpBefore`, {
			tag: `editHttpBefore_edit`,
			// 编辑需要携带id
			listener: async obj => {
				obj.id = props.row.id;
				return obj;
			}
		});
	}
}